package com.itheima.myinner.text4;

public class StringHandleDmeo {
    public static void main(String[] args) {
        StringHandler s1 = (String msg)->{
            System.out.println("我是lambda实现"+msg);//接口的实现类对象
        };
        s1.PrintMessage("hello");

    }
    public static void useStingHandler(StringHandler stringHandler){
        stringHandler.PrintMessage("itheima" );

    }
}
//当以一个只有一个将抽象方法的接口
interface StringHandler{
    void PrintMessage(String msg);
}